import React, { Component } from 'react'
import { NavLink } from "react-router-dom"

export default class header extends Component {
    render() {
        console.log(this.props);
        return (
            <ul>
                {
                    this.props.routes.map((item, index) => {
                        return (
                            <li key={index}>
                                <NavLink to={item.path} children={item.meta.title}></NavLink>
                            </li>
                        )
                    })
                }
            </ul>
        )
    }
}
